<div class="wp-20" ui-view="container">

    <div ng-if="!noPermission" >
        <div class="head_title" >
            <span class="tit-color">公告管理</span>
        </div>
        <div class="searchWapper">
            <div class="form-group searchLump search-condition">
                <div class="searchTitle">搜索：</div>
                <div class="col-lg-5">
                    <div class="input-group">
                        <div class="input-group " >
                            <input type="text" class="input width-200"  ng-model="keyword"   ui-event="{ keyup : 'keyup($event,keyword)' }" placeholder="标题">
                            <input type="button" class="btn btn-primary" value="搜索" style="margin-top: -3px;margin-left: 20px"  ng-click="searchClick(keyword)">
                        </div>
                    </div>
                </div>
            </div>

            <div class="form-group searchLump">
                <div class="searchTitle">操作：</div>
                <div class="search-select">
                    <button class="btn btn-primary" style="margin-left: 15px;margin-top: 3px" ui-sref="main.notice.create">新建</button>
                    <button class="btn btn-primary" style="margin-left: 10px;margin-top: 3px" ng-click="deleteSelected()">删除</button>
                </div>

            </div>
        </div>

        <div style="clear: both;margin-top: 15px" ></div>
        <table class="table table-bordered table-hover table-page">
            <thead>
            <tr>
                <th><input type="checkbox" id="allCheck" class="magic-checkbox" ng-model="$parent.allChecked"
                           ng-change="allCheckChange($parent.allChecked)">
                    <label for="allCheck"></label></th>
                <th>ID</th>
                <th>标题</th>
                <th>摘要</th>
                <th>创建人</th>
                <th>创建时间</th>
                <th>开始时间</th>
                <th>结束时间</th>
                <th>操作</th>

            </tr>
            </thead>
            <tbody>
            <tr ng-repeat="item in items">

                <td>
                    <input type="checkbox" id="{{$index}}" class="magic-checkbox" ng-model="item.checked"
                           ng-change="itemCheckChange(item)">
                    <label for="{{$index}}"></label>
                </td>
                <td>
                    {{item.id}}
                </td>
                <td>
                    <a ui-sref="main.notice.detail({noticeId:item.id})">{{item.title}}</a>
                </td>
                <td title="{{item.brief}}">
                    {{item.brief}}
                </td>
                <td>
                    {{item.adminUser}}
                </td>
                <td>
                    {{item.cTime}}
                </td>
                <td>
                    {{item.startDay}}
                </td>
                <td>
                    {{item.endDay}}
                </td>


                <td>

                    <a ng-click="delete(item)" class=" circle">删除</a>
                </td>
            </tr>
            </tbody>
        </table>
        <div class="panel-footer paging">
            <s-pagination conf="paginationConf"></s-pagination>
        </div>

    </div>

    <div ng-if="noPermission" ng-include="'templates/no-permission.html'">

    </div>


    <!--<a ui-sref="campaigns.detail({campaignsId:1})"  ui-sref-opts="{inherit:false}">aaaaa</a>-->
</div>
